@import 'src/styles/global';

$min-height: 150px;

.doc-flow-chart {
  border: 1px solid var(--color-border-3);
  border-radius: 3px;
  position: relative;

  &.selected {
    box-shadow: 0 0 0 2px rgb(var(--blue-3));
  }

  .flow-chart-container {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: 100%;
    min-height: $min-height;
    user-select: none;

    svg {
      box-sizing: border-box;
      max-width: 100%;
      padding: 0 10px;
    }
  }

  .arco-spin {
    display: block;
  }

  .flow-chart-title {
    align-items: center;
    border-radius: 5px;
    display: flex;
    left: 5px;
    opacity: 0;
    padding: 1px 5px;
    position: absolute;
    top: 5px;
    transition: all 0.3s;
    visibility: hidden;
    z-index: 10000;

    > svg {
      color: rgb(var(--blue-7));
      margin-right: 3px;
    }

    >span {
      font-size: 12px;
    }
  }

  &:hover {
    .flow-chart-title {
      opacity: 1;
      visibility: visible;
    }
  }
}

.arco-trigger.flow-chart-toolbar {
  background-color: var(--color-bg-2);
  box-shadow: $box-shadow;
  display: flex;
  justify-content: center;
  padding: 6px 10px;

  .arco-btn-text {
    color: var(--color-text-1);
    padding: 0 5px;
  }
}

.diagram-container .diagram-exit-btn {
  cursor: pointer;
  margin-right: 10px;
}
